/*

NOTES:
 
- Sets up folder structure 
- Executes all programs needed to create dataset "predicted_lnwage3.dta" with predicted log wage instrument from 2000 Census

*/


clear
clear matrix
clear mata
set mo off
prog drop _all
capture log close
//capture set maxvar 32767
set maxvar 120000 // for STATA MP


*******************
* DIRECTORY SETUP *
*******************

global root "D:\users\llochner\Dropbox\JOINT PROJECTS\JPE_Child_Devp_2020\FINAL_Replication_CLMP_JPE"  // USER MUST SET THIS FOLDER

*************************

global data_census "$root\data\data_Census"

global code "$root\code\data_cleaning\pred_wage_instrument"
global logs "$root\code\data_cleaning\pred_wage_instrument\logs"
global temp "$root\code\data_cleaning\pred_wage_instrument\temp_data"

global data_der "$root\data\data_derived"

**************************


do "$code/create_raw_data"  // read in raw ascii data from Census
do "$code/clean_census"     // clean data
do "$code/predict_census"   // get predicted log wages by state-year and save to data files


